package classes_tables;

public class Avion  implements Table
{
	public int numAvion;
	public String nomAvion;
	public int capacite;
	public String localisation;
	
	public Avion (int numAvion, String nomAvion, int capacite, String localisation)
	{
		this.numAvion = numAvion;
		this.nomAvion = nomAvion;
		this.capacite = capacite;
		this.localisation = localisation;
	}

	public int getNumAvion() {
		return numAvion;
	}

	public String getNomAvion() {
		return nomAvion;
	}

	public int getCapacite() {
		return capacite;
	}

	public String getLocalisation() {
		return localisation;
	}

	@Override
	public String toString() {
		return "Avion [numAvion=" + numAvion + ", nomAvion=" + nomAvion
				+ ", capacite=" + capacite + ", localisation=" + localisation
				+ "]";
	}

	@Override
	public String[] getValeurs() {
		String[] s = new String[]{String.valueOf(numAvion), nomAvion, String.valueOf(capacite), localisation};
		
		return s;
	}
	
}
